package com.smfx.yxt.common.enums;

public enum RelationType {

	CLASS_ALBUM("classalbum", "班级相册"),
	HEAD_IMG_URL("headimg", "头像"),
	CLASS_GROUP_CHAT("groupchat", "班级群聊"),
	NOTICE("notice", "通知"),
	STUDENT_LEAVE("studentleave", "学生请假"),
	TEACHER_LEAVE("teacherleave", "老师请假"),
	COORDINATION_OFFICE("coordinationOffice", "协同办公"),
	WORK_APPROVAL("workApproval", "工作审批"),
	MAILBOX("mailbox", "校长信箱"),
	FAIL_REPAIR("failRepair", "故障报修"),
	STUDENT_FRUITS("studentFruits", "学生成果"),
	TEACHER_ROUTINE("teacherRoutine", "教师常规"),
	STUDENT_ROUTINE("studentRoutine", "学生常规"),
	INTEREST_COURSE("interestCourse", "兴趣课程"),
	FILE_AROUND("fileAround", "文件传阅"),
	WEEK_COMMENT("weekComment", "每周点评"),
	FACE_IMG("faceImg", "人脸图片");

	private final String code;
	
	private final String value;
	
	private RelationType(String code, String value) {
		this.code = code;
		this.value = value;
	}

	public static String getValue(String key) {
		for(RelationType type : RelationType.values()) {
			if(type.getCode().equals(key)) {
				return type.getValue();
			}
		}
		return null;
	}
	
	public String getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}
	
}
